const App = getApp();
Component({
    properties: {
        show: {
            type: Boolean,
            value: !0
        },
        messageCount: {
            type: String,
            value: ""
        },
        placeholder: {
            type: String,
            value: ""
        }
    },
    data: {
      statusBarHeight: "",
      statusBarPadding: ""
    },
    lifetimes: {
      attached: function () {
        this.setData({
          statusBarHeight: App.globalData.navHeight,
        })
        this.setData({
          statusBarPadding: App.globalData.navTop,
        })
      }
    },
    methods: {
        linkToSearch: function() {
            wx.navigateTo({
                url: "/pages/index/sonpages/search/index"
            });
        },
        toggCity() {
          wx.navigateTo({
            url: "/pages/index/sonpages/toggle-city/index"
          });
        }
    }
});